home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / admin / linuxcon.6 / linuxcon / usr / lib / linuxconf / mailconf / rulesets.s0.local.cf < prev    next >
Encoding:
Text File  |  1996-08-04  |  941 b   |  25 lines

  1. # Complex user routing end here
  2.  
  3. R<@>            $#local $: <>            special case error msgs
  4. R$* : $* ;        $#error $@ USAGE $: "list:; syntax illegal for recipient addresses"
  5. R<@ $+>            $#error $@ USAGE $: "user address required"
  6. R<$* : $* >        $#error $@ USAGE $: "colon illegal in host name part"
  7.  
  8. # handle numeric address spec
  9. R$* < @ [ $+ ] > $*    $: $>98 $1 < @ [ $2 ] > $3    numeric internet spec
  10. R$* < @ [ $+ ] > $*    $#smtp $@ [$2] $: $1 < @ [$2] > $3    still numeric: send
  11.  
  12. # now delete the local info -- note $=O to find characters that cause forwarding
  13. R$* < @ > $*        $@ $>97 $1        user@ => user
  14. R< @ $=w . > : $*    $@ $>97 $2        @here:... -> ...
  15. R$* $=O $* < @ $=w . >    $@ $>97 $1 $2 $3        ...@here -> ...
  16.  
  17. # handle local hacks
  18. R$*            $: $>98 $1
  19.  
  20. # short circuit local delivery so forwarded email works
  21. R$+ < @ $=w . >        $: $1 < @ $m . @ $H >        first try hub
  22. R$+ < @ $+ @ $+ >    $#smtp $@ $3 $: $1 < @ $2>            yep ....
  23. R$+ < $+ @ >        $#local $: @ $1            nope, local address
  24.  
  25.